<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@page import="paging.Paging"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%
	String separator = "<tr bgcolor='#003366'><td height='0.2' colspan='10'></td></tr>";
%>
<%@include file="notice.jsp"%>
<html>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link href="./css/Design.css" rel="stylesheet" type="text/css">
<title>Insert title here</title>

<link href="./css/global.css" rel="stylesheet" type="text/css">
<link href="./css/complete_tables.css" rel="stylesheet" type="text/css">

<script type="text/javascript" src="./js/jquery.js"></script>
<script type="text/javascript" src="./js/table/jquery.tablesorter.js"></script>

<script type="text/javascript">
	$(document).ready(function() {
		$('table.sortable').tablesorter({
			widgets : [ 'zebra' ],
			/* [0,0] : 1번째 컬럼에 대하여 오름차순 정렬 */
			/* [3,1] : 4번째 컬럼에 대하여 내림차순 정렬 */
			sortList : [ [ 0, 0 ] ]
		});
	});
</script>

<!-- 자바스크립트 영역 -->
<script type="text/javascript">
	function goUrl(url) {
		location.href = url;
	}
</script>
</head>

<body>
	<div id="wrapper">
		<div id="subhead">
			<img src="./jsp/image/subLogo.gif" />
		</div>
		<div id="submenu"></div>

		<div id="container">
			<div id="contentWrap">
				<div id="main">
					<h1>관리자 페이지 - 공지 관리</h1>
					<br>

					<table border="0" class="sortable">
						<tr>
							<td>번호</td>
							<th scope="col">제목</th>
							<th scope="col">등록일</th>
							<th scope="col">조회수</th>
							<th scope="col">수정</th>
							<th scope="col">삭제</th>
						</tr>
						<%=separator%>
						<tbody>
							<c:forEach var="notice" items="${noticeList}">
								<tr>
									<td>${notice.nno }</td>
									<td><a href="<%=myContext %>/view.not?nno=${notice.nno }">${notice.subject }</a></td>
									<td>${notice.redate }</td>
									<td>${notice.rhit }</td>
									<td><a
										href="<%=myContext %>/delete.not?nno=${notice.nno }">삭제</a></td>
									<td><a href="<%=myContext %>/find.not?nno=${notice.nno }">수정</a></td>
								</tr>
							</c:forEach>

						</tbody>
						<tr align="center">
							<td colspan="6" align="center">${pageInfo.pagingHtml}</td>
						</tr>
					</table>
				</div>
			</div>
		</div>
	</div>
	<div id="siteDown">밑쪽 footer</div>
</body>
</html>